package com.yunxin.admin.system.infra.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunxin.admin.system.infra.persistence.entity.SysRoleMenuDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色菜单持久层
 *
 * @author zero°
 * @since 2023-05-22
 */
@Mapper
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenuDO> {

    /**
     * 获取角色拥有的菜单ID集合
     *
     * @param roleId roleId
     * @return List<Long>
     */
    List<Long> listMenuIdsByRoleId(@Param("roleId") Long roleId);
}
